import { _decorator, Component, Node, Label, Sprite } from 'cc';
import { ScrollListCell } from '../../comp/ScrollListCell';
const { ccclass, property } = _decorator;

@ccclass('ItemRender')
export class ItemRender extends ScrollListCell {
    @property(Label)
    txtName:Label;
    @property(Sprite)
    icon:Sprite;
    start() {

    }

    update(deltaTime: number) {
        
    }

    onRender():void{
        super.onRender()
        let data = this.data;
        this.txtName.string = "道具"+data;
    }
}

